package gemini.castor.ui.client.page.content.information.successstories.form;

import gemini.castor.ui.client.constants.I18nConstants;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;

public class SuccessStoriesFormView extends Composite implements
		SuccessStoriesFormPresenter.Display {

	@UiTemplate("SuccessStoriesFormView.ui.xml")
	interface MyUiBinder extends UiBinder<Panel, SuccessStoriesFormView> {
	}

	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
	private I18nConstants constants;

	public SuccessStoriesFormView() {
		initWidget(binder.createAndBindUi(this));
		constants = GWT.create(I18nConstants.class);
	}
	
	@UiField
	HTML htmWeightStoryInfo;

	@UiField
	HTML htmPersonalCareStoryInfo;

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public void loadData() {
		htmWeightStoryInfo.setHTML(constants.htmWeightStoryInfo());
		htmPersonalCareStoryInfo.setHTML(constants.htmPersonalCareStoryInfo());

	}

}
